let input = document.querySelector('input')

input.onblur = function (e) {
    e.target.value = ''
    input.classList.add('active')
}